package com.acme.exceptions;

import com.acme.bankapp.domain.bank.Account;

@SuppressWarnings("serial")
public class OverDraftLimitExceededException extends NotEnoughFundsException {
	Account account;
	double amountAllowed;

	public OverDraftLimitExceededException(double amountWanted,
			Account account, double amountAllowed) {
		super(amountWanted);
		this.account = account;
		this.amountAllowed = amountAllowed;
	}

	public Account getAccount() {
		return account;
	}

	public double getAmountAllowed() {
		return amountAllowed;
	}
}
